import instance from '@/utils/request.js'

export const getCollectList = (params) => {
  return instance({
    url: '/collect/list',
    method: 'get',
    params,
  })
}
export const editCollect = ( data) => {

  return instance({
    url: '/collect',
    method: 'put',
    data,
  })
}

export const deleteCollect = (id) => {
  return instance({
    url: `/collect/${id}`,
    method: 'delete',
  })
}

export const addCollect = (data) => {
  return instance({
    url: '/collect',
    method: 'post',
    data,
  })
}
